<template>
  <div id="adminHome" >
    <el-container>
      <admin-menu/>
       <router-view class="scroll"/>
    </el-container>
  </div>
</template>

<script>
  import adminMenu from "./adminMenu";
  import changeMode from "@/static/js/changeMode";
    export default {
        name: "adminHome",
      components:{
          adminMenu,
      },
      created() {
        this.judgeIsDark()
      },
      methods:{
        judgeIsDark(){
          if(localStorage.mode === 'dark'){
            changeMode.dark()
          }else{
            changeMode.daily()
          }
        }
      }
    }
</script>

<style lang="less" scoped>
  .el-container{
    height: 100%;
  }
</style>
